<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Registration Page</title>
<s:head />
<style type="text/css">
@import url(media/css/styles.css);
</style>
</head>
<body>
<s:form action="editExamination">
	<s:push value="examinationEntity">
		<s:hidden name="examId" value="%{examId}" />
		<s:textfield name="examTitle" label="Tiêu đề" />
		<s:textfield name="questNum" label="Số câu hỏi" />
		<s:textfield name="examTime" label="Thời gian thi" />
		<s:if test="status==1">
			<s:checkbox name="statusAction" label="Trạng thái thi (Đã thi)" value="1"/>
		</s:if>
		<s:else>
			<s:checkbox name="statusAction" label="Trạng thái thi (Đã thi)" value="0"/>
		</s:else>
		<s:select name="subQuestId" list="tSubQuestionEntityList" listKey="subQuestId" 
			listValue="subject" headerKey="%{subQuestionEntity.subQuestId}" 
			headerValue="%{subQuestionEntity.subject}" label="Chủ đề" />
		<s:hidden name="userId" value="%{userId}"/>
		<s:submit name="btSave" value="Lưu thay đổi"/>
	</s:push>
</s:form>
</body>
</html>